$(document).ready(function(){
	$(".m-page>input").change(function(){
		window.location.href="ListPostType.do?pageindex="+$(".m-current-page").html()+"&pagesize="+$(".m-page>input").val();
	});
})
function deleteposttype(posttype){
	var result = confirm('是否确认删除帖子分类:' + posttype);
	if(result ==  true){
		$.post("DeletePostType.do",{"posttype":posttype},function(res){
			res = eval('(' + res + ')');
			if(res!= undefined && res != null){
				if(res.status != undefined){
					if(res.status == "ok"){
						alert(res.msg);
						window.location.href="ListPostType.do";
					}else if(res.status == "error"){
						alert(res.msg);
					}
				}
			}
		});
	}else{
		return false;
	}
}